/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.soccer.cms.modules.cms.entity;

import org.hibernate.validator.constraints.Length;
import com.soccer.cms.modules.cms.entity.Club;

import com.soccer.cms.common.persistence.DataEntity;

/**
 * 装备Entity
 * @author zouqh
 * @version 2015-05-26
 */
public class Equipment extends DataEntity<Equipment> {
	
	private static final long serialVersionUID = 1L;
	private String code;		// 编码
	private String name;		// 名称
	private Club club;		// 所属俱乐部
	private String seaninfo;		// 所属赛季
	private String brefimage;		// 简图
	private String brefintrol;		// 简介
	private Double srcprice;		// 参考价格
	private Double eprice;		// 价格
	
	public Equipment() {
		super();
	}

	public Equipment(String id){
		super(id);
	}

	@Length(min=0, max=50, message="编码长度必须介于 0 和 50 之间")
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	@Length(min=0, max=100, message="名称长度必须介于 0 和 100 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public Club getClub() {
		return club;
	}

	public void setClub(Club club) {
		this.club = club;
	}
	
	@Length(min=0, max=50, message="所属赛季长度必须介于 0 和 50 之间")
	public String getSeaninfo() {
		return seaninfo;
	}

	public void setSeaninfo(String seaninfo) {
		this.seaninfo = seaninfo;
	}
	
	@Length(min=0, max=500, message="简图长度必须介于 0 和 500 之间")
	public String getBrefimage() {
		return brefimage;
	}

	public void setBrefimage(String brefimage) {
		this.brefimage = brefimage;
	}
	
	@Length(min=0, max=500, message="简介长度必须介于 0 和 500 之间")
	public String getBrefintrol() {
		return brefintrol;
	}

	public void setBrefintrol(String brefintrol) {
		this.brefintrol = brefintrol;
	}
	
	public Double getSrcprice() {
		return srcprice;
	}

	public void setSrcprice(Double srcprice) {
		this.srcprice = srcprice;
	}
	
	public Double getEprice() {
		return eprice;
	}

	public void setEprice(Double eprice) {
		this.eprice = eprice;
	}
	
}